<?php

$mcrp = './';
include_once('functions/session.php');

$head = '<script type="text/javascript" src="nano/nanoeditor.js"></script>
<script type="text/javascript" src="nano/nanoajax.js"></script>
<script type="text/javascript" src="nano/nanomenu.js"></script>
<link href="nano/nano.css" rel="stylesheet" media="screen" type="text/css" title="style" />';
include('skin/default.php');
include('skin/header.php');

?>

<div class="mc_box">
	<h3><a href="nano.php">Nanocontest</a> :: Compilateur</h3>
	<?php if($mcuser->id == 0) { ?>
	<div><center><img src="img/stop-trackback.png"><br/>Vous devez être connecté pour accéder à cette page.<br />Si vous n'êtes pas encore inscrit, rendez-vous sur la page d'<a href="register.php">inscription</a>.</center></div>
	<?php } else { ?>
	<div id="nc_notif" style="visibility:hidden;"></div>
	<div style="width:95%;margin:auto;">Note : les programmes enregistrés peuvent être supprimés à tout moment, pendant la période de test de la version bêta.</div>
	<div id="mc_nvm_options">
		<div id="mc_nvm_m1" class="mc_nvm_menu_item" onmouseover="NanoDispMenu(this);" onmouseout="NanoHideMenu(this);">
			<div class="mc_nvm_title">Fichier</div>
			<div id="mc_nvm_m1u" class="mc_nvm_menu_u" style="display:none;">
				<div class="mc_nvm_umenu_item" onclick="NanoNewPrgm();">Nouveau</div>
				<div class="mc_nvm_umenu_item" onclick="NanoOpenPrgm();">Ouvrir</div>
				<div class="mc_nvm_umenu_item" onclick="NanoOpenLastPrgm();">Ouvrir le dernier programme compilé</div>
				<div class="mc_nvm_umenu_item" onclick="NanoSavePrgm();">Enregistrer</div>
				<div class="mc_nvm_umenu_item" onclick="NanoDelPrgm();">Supprimer un programme</div>
			</div>
		</div>
		<div id="mc_nvm_m2" class="mc_nvm_menu_item" onmouseover="NanoDispMenu(this);" onmouseout="NanoHideMenu(this);">
			<div class="mc_nvm_title">Programme</div>
			<div id="mc_nvm_m2u" class="mc_nvm_menu_u" style="display:none;">
				<div class="mc_nvm_umenu_item" onclick="NanoCompile();">Compiler</div>
			</div>
		</div>
	</div>
	<div id="nc_prgm_list" class="mc_box" style="display:none;"><h3></h3><div id="nc_prgm_list_content"></div><div id="nc_save_new" style="display:none;"><fieldset><legend>Nouveau</legend>Nom : <input id="nc_new_name"></input><button onclick="NanoSaveFile(null);" style="float:right;">Enregistrer</button></fieldset></div><a href="#" onclick="NanoCloseDlg();return false;" style="float:right;margin-right:10px;">Fermer</a></div>
	<div id="mc_dlg" style="display:none;"></div>
	<table style="width:95%;margin:auto;"><tr><td><div class="mc_nano_div_editor"><textarea id="mc_nano_editor" spellcheck="false"></textarea></div></td>
	<td style="width:50%;max-width:50%;"><textarea id="mc_nano_out" readonly></textarea><textarea id="mc_nano_code" readonly></textarea></td></tr></table>
	<?php } ?>
</div>
<?php

include('skin/footer.php');

?>